Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new columns for receipts table #1248

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

Terryhung
Copy link
Collaborator

resolve the issue: #1247

@Terryhung Terryhung marked this pull request as ready for review July 27, 2023 03:41
@Terryhung Terryhung requested a review from birdychang July 27, 2023 04:21
Copy link
Contributor

@birdychang birdychang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines 7 to 12
ALTER TABLE {{ .SchemaName | default "public"}}.receipts
ADD COLUMN IF NOT EXISTS "parsed_return" JSONB;

ALTER TABLE {{ .SchemaName | default "public"}}.receipts
ADD COLUMN IF NOT EXISTS "return" bytea;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reorder to match the model please, otherwise we might have issues (similar to the actors table..). Thanks!

Suggested change
ALTER TABLE {{ .SchemaName | default "public"}}.receipts
ADD COLUMN IF NOT EXISTS "parsed_return" JSONB;
ALTER TABLE {{ .SchemaName | default "public"}}.receipts
ADD COLUMN IF NOT EXISTS "return" bytea;
ALTER TABLE {{ .SchemaName | default "public"}}.receipts
ADD COLUMN IF NOT EXISTS "return" bytea;
ALTER TABLE {{ .SchemaName | default "public"}}.receipts
ADD COLUMN IF NOT EXISTS "parsed_return" JSONB;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Terryhung Terryhung merged commit a4d5020 into master Jul 27, 2023
@Terryhung Terryhung deleted the terryhung/add-new-column-for-receipt-returns branch July 27, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants